<?php

namespace App\Service\Activity;

use App\Dao\Activity\ActivityDao;
use Hyperf\Di\Annotation\Inject;

class ActivityService
{
    /**
     * @Inject()
     * @var ActivityDao
     */
    protected $activityDao;

    public function lists()
    {
        return $this->activityDao->getList();
    }

    public function add($params)
    {
        return $this->activityDao->create($params->toArray());
    }

    public function join(int $uid, int $activityId)
    {
        
    }
}